package com.bingo.generate.cli.filter;

import com.bingo.generate.comm.entity.ColInfo;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * ClassName
 * Description
 * Create by lc
 * Date 2021/8/10 17:22
 */
public class QtFilter {

    //  修改代码时过滤
    public static List updFilter(List<ColInfo> colInfos){
        List list=new ArrayList();
        for (ColInfo colInfo : colInfos) {
            if(colInfo.getTableName().equals("users")){
                //  "phone",
                List<String> igoreList= Arrays.asList("password","refcode","truename","amount","gold","heat","grade","is_super","is_admin");
                //  忽略跳过的字段
                if(igoreList.contains(colInfo.getColName())){
                    continue;
                }
            }
            list.add(colInfo);
            
        }
        return list;
    }

}
